// request("/list/v2/banner"","get",{index:1})
// jf2022
// let baseURL="https://api.it120.cc" //公共请求路径
export default function (url,method="get",data,isSub,header={
  "Content-type":"application/x-www-form-urlencoded"
}){

  return new Promise((reolove,reject)=>{
        wx.request({
          url:url,
          method,
          data,
          header,
          success(res){
            reolove(res)
          },
          fail(err){
            reject(err)
          }
        })
  })

}